package com.yixq.soa.service.comm.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 分页结果Vo
 * Created by marvin on 2017/5/27.
 */
public class PageVo<T> implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 分页大小
     */
    private int limit;

    /**
     * 页数
     */
    private int page;

    /**
     * 总记录数
     */
    private long totalCount;

    /**
     * 总页数
     */
    private long totalPage;

    /**
     * 结果集
     */
    private List<T> content;

    public PageVo() {
    }

    public PageVo(int limit, int page, long totalCount, long totalPage, List<T> content) {
        this.limit = limit;
        this.page = page;
        this.totalCount = totalCount;
        this.totalPage = totalPage;
        this.content = content;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }
}
